package com.cos66.model;

import android.os.Parcel;
import android.os.Parcelable;

public class MagazineDetailItem implements Parcelable {

	public static int ARTICLE = 0;
	public static int AUDIO = 1;
	public static int VIDEO = 2;

	private int detailType;
	private long detailId;
	private String detailTitle;
	private String detailBrief;
	private String detailImageUrl;
	private String detailResourceUrl;

	public MagazineDetailItem() {

	}

	public MagazineDetailItem(Parcel in) {
		detailType = in.readInt();
		detailId = in.readLong();
		detailTitle = in.readString();
		detailBrief = in.readString();
		detailImageUrl = in.readString();
		detailResourceUrl = in.readString();

	}

	public MagazineDetailItem(int detailType, int detailId, String detailTitle,
			String detailBrief, String detailImageUrl, String detailResourceUrl) {
		this.detailType = detailType;
		this.detailId = detailId;
		this.detailTitle = detailTitle;
		this.detailBrief = detailBrief;
		this.detailImageUrl = detailImageUrl;
	}

	public String getDetailResourceUrl() {
		return detailResourceUrl;
	}

	public void setDetailResourceUrl(String detailResourceUrl) {
		this.detailResourceUrl = detailResourceUrl;
	}

	public int getDetailType() {
		return detailType;
	}

	public void setDetailType(int detailType) {
		this.detailType = detailType;
	}

	public long getDetailId() {
		return detailId;
	}

	public void setDetailId(long detailId) {
		this.detailId = detailId;
	}

	public String getDetailTitle() {
		return detailTitle;
	}

	public void setDetailTitle(String detailTitle) {
		this.detailTitle = detailTitle;
	}

	public String getDetailBrief() {
		return detailBrief;
	}

	public void setDetailBrief(String detailBrief) {
		this.detailBrief = detailBrief;
	}

	public String getDetailImageUrl() {
		return detailImageUrl;
	}

	public void setDetailImageUrl(String detailImageUrl) {
		this.detailImageUrl = detailImageUrl;
	}

	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		dest.writeInt(detailType);
		dest.writeLong(detailId);
		dest.writeString(detailTitle);
		dest.writeString(detailBrief);
		dest.writeString(detailImageUrl);
		dest.writeString(detailResourceUrl);
	}

	public static final Parcelable.Creator<MagazineDetailItem> CREATOR = new Parcelable.Creator<MagazineDetailItem>() {
		public MagazineDetailItem createFromParcel(Parcel in) {
			return new MagazineDetailItem(in);
		}

		public MagazineDetailItem[] newArray(int size) {
			return new MagazineDetailItem[size];
		}
	};

}
